package com.groupseven.happycampus.common.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;




@Data
@AllArgsConstructor
@NoArgsConstructor
public class Commodity {
    /**
     * 商品表	commodity:	id	 type（类型）	name（商品名）picture(图片)
     * appeared_date(上架时间)	price	 /quantity（数量）/	id(上架商品id)
     * Product_description(商品描述)
     */
    private Integer id;
    private CommodityType type;
    private String commodityName;
    private String pic;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date appearedDate;
    private Integer price;
    private Integer quantity;
    private Integer commodityId;
    private Boolean status;
    private String productDescription;



}
